﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
using MyAuthCore.Tools;

namespace MyAuthCore.Api
{
    public class Program
    {
      
        public static void Main(string[] args)
        {
            // string path = Directory.GetCurrentDirectory();
            // var builder = new ConfigurationBuilder()
            //.SetBasePath(path)
            //.AddJsonFile("appsettings.json");
            // Configuration = builder.Build();
            //string bb = Configuration["AppName"];
            //Console.WriteLine("配置文件值：" + bb);
            //string test=  IDHelper.GetTimeUUID();
            BuildWebHost(args).Run();
        }

        public static IWebHost BuildWebHost(string[] args) =>
            WebHost.CreateDefaultBuilder(args)
                .UseStartup<Startup>()
                .Build();
    }
}
